package com.gxkj.drm.constant;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Properties;

/**
 * Created by changxiangyang on 2017/9/19.
 */
public class Constant {
    public static Properties APP;

    private static final Logger logger = LoggerFactory.getLogger(Constant.class);

    static {
//        try {
//            APP = PropertiesLoaderUtils.loadAllProperties(DrmEnv.getEnvironment() + "/rmi.properties");
//        } catch (IOException e) {
//            logger.error("load charge-core.properties error!", e);
//        }
        APP = new Properties();
    }

    //短信服务配置
    public static final String SMS_HOST = APP.getProperty("sms.host");
    public static final String SMS_APP_KEY = APP.getProperty("sms.app.key");
    public static final String SMS_APP_SECRET = APP.getProperty("sms.app.secret");
    public static final String SMS_TEMPLATE_FORMAT = SMS_HOST + "/api/v1/message/template/send";
    public static final String SMS_CONTENT_FORMAT = SMS_HOST + "/api/v1/message/content/send";
}
